package cd.cdyb.sms.service;


import cd.cdyb.sms.config.LoginUserSecurityDto;
import cd.cdyb.sms.dto.EmployeeDto;
import cd.cdyb.sms.vo.EmployeeVo;
import cd.cdyb.sms.exception.BusinessException;

import java.util.List;

/**
 * @author lilin
 */
public interface EmployeeService {

    /**
     * 登录
     *
     * @param username 手机号
     * @param password  密码
     * @return 登录信息
     */
    LoginUserSecurityDto login(String username, String password) throws BusinessException;


    /**
     * 新增
     *
     * @param employeeDto
     */
    void insert(EmployeeDto employeeDto) throws BusinessException;

    /**
     * 编辑
     *
     * @param employeeDto
     */
    void update(EmployeeDto employeeDto) throws BusinessException;

    /**
     * 停用、激活
     *
     * @param employeeDto
     */
    void valid(EmployeeDto employeeDto) throws BusinessException;

    /**
     * 删除
     *
     * @param employeeDto
     */
    void deleted(EmployeeDto employeeDto) throws BusinessException;

    /**
     * 员工列表
     *
     * @param employeeDto
     * @return
     */
    List<EmployeeVo> findEmployeeList(EmployeeDto employeeDto);

}
